package Data;

public enum RobotMods implements java.io.Serializable  {
	Exploring(0),
	Returnig(1),
	Falowing(2),
	DoNothing(3);
	
	private int code;
    public static int directionLength = 4;
    
	private RobotMods(int c) {
		   code = c;
		 }
	public int getCode() {
		   return code;
		 }
	
	 public static RobotMods getDirection(int code) {
		   switch(code) {
		    case 0: return Exploring;  
		    case 1: return Returnig; 
		    case 2: return Falowing;
		    case 3: return DoNothing;
		    default: return Exploring;
		   }
		 }
}
